angular.module('admin.user', ['services.crud', 'directives.if'])
// 配置文件
.config(['crudRouteProvider','$stateProvider', function (crudRouteProvider, $stateProvider) {

    crudRouteProvider.routesFor('user', 'admin')
        .whenList()
        .whenNew()
        .whenEdit();

}])

// 控制器
.controller('userListCtrl', ['$scope', function ($scope) {
    $scope.model = {show : true, count : 0};
}]);
